package net.zjitc.service;

import net.zjitc.domain.Product;
import net.zjitc.utils.PageBean;

import java.sql.SQLException;
import java.util.List;

/**
 * 2 * @Author: 洪瑶
 * 3 * @Date: 2018/10/16 15:59
 * 4
 */
public interface ProductService {
    List<Product> findAll() throws SQLException;
    List<Product> findhot() throws SQLException;
    List<Product> findnew() throws SQLException;
    boolean Add(Product product) throws SQLException;
    boolean Delete(int id) throws SQLException;
    boolean Update(Product product, String id) throws SQLException;
    Product findbyid(int id) throws SQLException;
    PageBean<Product> findbyPage(int page, int pageSize);
    List<Product> findCategoryPageList(int cid,int page,int pageSize) throws SQLException;
    int findcount();
    List<Product> findCategorySecondPageList(int csid, int page, int pageSize) throws SQLException;
}
